package com.novax.ex.activity.open.api;

import com.novax.ex.activity.open.model.response.OperationV2ConfigOuterResponse;
import com.novax.ex.activity.open.model.response.OperationV2SubConfigOuterResponse;
import com.novax.ex.common.results.ReturnResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description 后台-活动落地页
 * @Author ChenXi
 * @Date 2023/04/18/10:48
 */
@Tag(name = "前台-活动落地页V2", description = "前台-活动落地页V2")
@FeignClient(url = "${remote.activity-service.endpoint}", name = "OperationV2Api", contextId = "OperationV2Api")
public interface OperationV2Api {

    @Operation(summary = "主活动配置")
    @GetMapping("/v3/public/operation-v2/detail")
    ReturnResult<OperationV2ConfigOuterResponse> query(@RequestHeader String language, @RequestParam String customId);

    @Operation(summary = "子活动配置")
    @GetMapping("/v3/public/operation-v2/sub-detail ")
    ReturnResult<List<OperationV2SubConfigOuterResponse>> openSubList(@RequestHeader String language, @RequestParam Long operationId);

}
